﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>

    <script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>

    <script src="js/jquery-pager-1.0.js" type="text/javascript"></script>

    <link href="js/pager.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
  /*      $(document).ready(function() {
            //加载页数及页码
			 var InitPager=function(RecordCount, PageIndex) {
            $("#test").setPager({ RecordCount: RecordCount, PageIndex: PageIndex, buttonClick: function(RecordCount, PageIndex){
				InitPager(RecordCount, PageIndex);
			}});
        };
            InitPager(200, 1);

        });*/
       


        $(function() {
			//
				var initPager= function(RecordCount, PageIndex){
					$.getJSON(url,{PageIndex:0,pagesize:5,callback:"?"},function(data){
						$("#test").setPager(
							{
								RecordCount:RecordCount,
								PageIndex: PageIndex,
								buttonClick:function(RecordCount, PageIndex){
									initPager(RecordCount,PageIndex);
								}
							}
						);
					});
				};
				initPager(200,1);
			
			//});
		});
	
    </script>

</head>
<body>
    <br />
    <br />
    <div id="result">
    </div>
    <div id="test" class="pageinfo">
    </div>
</body>
</html>
